//
//  QJCategoryVCLeftCell.m
//  QuanJieShopProject
//
//  Created by apple on 2018/2/8.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "QJCategoryVCLeftCell.h"

@implementation QJCategoryVCLeftCell
-(void)cellUpdateWithModel:(CategoryLeftModel *)model{
    if (model) {
        self.cellTitle.text = [NSString stringWithoutNilFormart:model.name];
        NSString *clickStr = [NSString stringWithoutNilFormart:model.ifClick];
        if ([clickStr isEqualToString:@"1"]) {
            self.cellBg.backgroundColor = [UIColor whiteColor];
            self.cellTitle.textColor = HexRGB(0x29b5de);
        }else{
            self.cellBg.backgroundColor = HexRGB(0xe6e6e6);
            self.cellTitle.textColor = HexRGB(0x333333);
        }
    }
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
